<div id="ContentGroup">
    <div class="count-header">
        <a>新闻栏目添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="XWLM_Update" data-role="form" data-event="finish" data-type="post" data-url="<{'XWLM_Update_Action'|U}>">
    <input type="hidden" id="XWLM_BH_ORA"  name="XWLM_BH_ORA" value="<{$Model->XWLM_BH|security_encript}>" />
                <div class="count-content-title">新闻栏目</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>名称</label>
                    <input type="text" id="XWLM_MC" name="XWLM_MC" value="<{$Model->XWLM_MC }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>简称</label>
                    <input type="text" id="XWLM_JC" name="XWLM_JC" value="<{$Model->XWLM_JC }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>显示顺序</label>
                    <{'XWLM_XSSX'|html_dropdownlist:["1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" , "10" , "11" , "12" , "13" , "14" , "15" , "16" , "17" , "18" , "19" , "20"]:$Model->XWLM_XSSX}>
                    <p class="form-list-item-tip">默认信息将按从小到大顺序排列</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>是否显示</label>
                    <{'XWLM_SFXS'|html_dropdownlist:["是" , "否"]:$Model->XWLM_SFXS}>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>默认显示条数</label>
                    <input type="text" id="XWLM_MRXSTS" name="XWLM_MRXSTS" value="<{$Model->XWLM_MRXSTS }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
            </form>     
            <div class="form-operation">
                <span class="button" id="XWLM_Update-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#XWLM_Insert").vtip();//开启鼠标提示.
        
        $("#XWLM_Update").validate({
            rules:{
                "XWLM_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XWLM_MC":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XWLM_JC":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XWLM_XSSX":{
                    "required":true 
                }, 
                "XWLM_SFXS":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XWLM_MRXSTS":{
                    "required":true 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#XWLM_Update").trigger("finish");
            }
        });
    
        $("#XWLM_XSSX").attr("data-tip","默认信息将按从小到大顺序排列");
        $("#XWLM_Update-Submit").click(function () {
            $("#XWLM_Update").submit();
        });
    });
</script>

